
 class Person {
	 	private String name;
	 	private Pet[] pets;
	 	private int foot;
	 	static int count=0;
	 	public Person(){
	 		
	 	}
	 	public Person(String name){
	 		this.setName(name);
	 	}
		public Person(int len){
			if(len>0){
				this.pets=new Pet[len];
			}
			else
				this.pets=new Pet[1];
		}
		public boolean add(Pet p){
			if(this.foot<this.pets.length){
				this.pets[this.foot]=p;
				this.foot++;
				return true;
			}
			else 
				return false;
		}
	 	public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public Pet[] getPets() {
			return pets;
		}
		public void setPets(Pet[] pets) {
			this.pets = pets;
		}

		
}
